from rest_framework.permissions import BasePermission


class APIPermission(BasePermission):
    method_map = {
        'get': 0,
        'post': 1,
        'delete': 2,
        'put': 3,
        'patch': 4
    }

    def has_permission(self, request, view):
        return True
